package main

import (
	"os"
	"fmt"
)

func main(){
	filePath := "../1.txt"
	file,err := os.OpenFile(filePath,os.O_WRONLY | os.O_TRUNC,0666)
	if err != nil {
		fmt.Println(err)
	}
	n,err1 := file.WriteString("aaaasdsfda")
	if err1 != nil {
		fmt.Println(err1)
	}
	fmt.Println(n)
}
